home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / QWK_15.ZIP / qwk_15.txt
Text File  |  1995-01-09  |  49KB  |  1,033 lines

  1.  
  2.                       QWK Mail Packet File Layout
  3.                            by Patrick Y. Lee
  4.  
  5. Version 1.0 - February 23, 1992
  6.      First release.
  7. Version 1.1 - March 15, 1992
  8.      Minor fixes here and there to make everything just right.
  9. Version 1.2 - May 31, 1992
  10.      Added a few items to the DOOR.ID file that is being supported by
  11.      Qmail DeLuxe2 version 1.25.
  12. Version 1.3 - July 6, 1992
  13.      Added changes to the QWK format adopted by Qmail door.  Specifi-
  14.      cally line 10 of CONTROL.DAT file and bytes 126-127 of MESSAG-
  15.      ES.DAT file.  Please refer to the appropriate section for the
  16.      changes.
  17. Version 1.4 - July 18, 1992
  18.      Fixed a few minor mistakes in the documentation (thanks to Cody
  19.      Gibson).  Nothing really major.  Also completed the Netmail sec-
  20.      tion of the documentation.
  21. Version 1.5 - July 30, 1992
  22.      Added off-line commands for Cam-Mail door.  Fixed error in the
  23.      status flag section.  The descriptions for `*' and `+' are incor-
  24.      rect.  Thanks to Bob Blaylock for bringing this up.
  25.  
  26. This document is Copyright 1992 by Patrick Y. Lee.
  27. The QWK-format is Copyright 1987 by Sparkware.
  28.  
  29. All program names mentioned in this document are either Copyright or
  30. Trademark of respective owners.
  31.  
  32. The author provides this file as-is without warranty of any kind,
  33. either expressed or implied.  You are using the information in this
  34. file at your own discretion.  The author assumes no responsibilities
  35. for damages, either physically or financially, from the use of this
  36. information.
  37.  
  38. This document may be freely distributed by any means (electronically,
  39. paper, etc.), provided that it is distributed in its entirety.  Por-
  40. tions of this document may be reproduced without credit.
  41.  
  42. The latest version of this file can always be found on Aardvark BBS
  43. (New York, NY) at (212) 496-8324 with an USR HST DS/v.32bis modem.  It
  44. can also be found in the Lunatic Fringe BBS (Plano, TX) at (214) 422-
  45. 2936 USR HST DS.  First time caller can download on both boards.
  46.  
  47.                            Table of Contents
  48.  
  49. 1.  Introduction
  50.     1.1.  Intent
  51.     1.2.  History
  52.     1.3.  Questions, corrections, etc.
  53. 2.  Conventions & overview
  54.     2.1.  The BBS ID
  55.     2.2.  Packet compression
  56.     2.3.  Packet transfer & protocols
  57.     2.4.  Limitations
  58. 3.  QWK files
  59.     3.1.  Naming convention
  60.     3.2.  Control file (CONTROL.DAT)
  61.     3.3.  Welcome file
  62.     3.4.  Goodbye file
  63.     3.5.  News file
  64.     3.6.  Qmail DeLuxe2 menu file
  65.     3.7.  New uploads listing (NEWFILES.DAT)
  66.     3.8.  Bulletin file(s) (BLT-x.y)
  67.     3.9.  Message file (MESSAGES.DAT)
  68.     3.10.  Index files (*.NDX)
  69.         3.10.1.  Conference indices
  70.         3.10.2.  Personal index (PERSONAL.NDX)
  71.     3.11.  Pointer file
  72.     3.12.  SESSION.TXT
  73. 4.  REP files
  74.     4.1.  Naming convention
  75.     4.2.  Message file (BBSID.MSG)
  76.     4.3.  Door control messages
  77.     4.3.1.  DOOR.ID file
  78.     4.3.2.  Qmail
  79.     4.3.3.  MarkMail
  80.     4.3.4.  KMail
  81.     4.3.5.  RoseMail
  82.     4.3.6.  Complete Mail Door
  83.     4.3.7.  The MainMail System
  84.     4.3.8.  BGQWK
  85.     4.3.9.  UltraBBS
  86.     4.3.10.  TriMail
  87.     4.3.11.  Cam-Mail
  88.     4.4.  Turning off the echo flag
  89.     4.5.  Tag-lines
  90. 5.  Net mail
  91. A.  Credits & contributions
  92. B.  Sample Turbo Pascal and C code
  93. C.  Sample message
  94. D.  Sample index file
  95.  
  96. To search for a specific section, look for "[x.x]" using your editor
  97. or viewer.  For example, to jump to the tag-lines portion of this
  98. file, search for "[4.5]" with your editor or text viewer.
  99.  
  100. [1]  Introduction
  101.  
  102. [1.1]  Intent
  103.  
  104.      This document is written to facilitate programmers who want to write
  105.      QWK-format mail doors or readers.  It is intended to be a comprehen-
  106.      sive reference covering all areas of QWK-format mail processing. 
  107.      Detailed break down of each file is included, as are implementation
  108.      information.  In addition, door and reader specific information may be
  109.      included, when such information are available to me.
  110.  
  111. [1.2]  History
  112.  
  113.      The QWK-format was invented by Mark "Sparky" Herring in 1987.  It was
  114.      based on Clark Development Corporation's PCBoard version 12.0 message
  115.      base format.  Off-line mail reading has become popular only in recent
  116.      years.  Prior to summer of 1990, there were only two QWK-format off-
  117.      line mail reader programs.  They were Qmail DeLuxe by Mark Herring and
  118.      EZ-Reader by Eric Cockrell.  Similarly for the doors, there were only
  119.      two -- Qmail by Mark Herring and MarkMail by Mark Turner.  They were
  120.      both for PCBoard systems.
  121.  
  122.      A lot has changed in both off-line reader and mail door markets since
  123.      summer 1990.  Now, there are more than a dozen off-line mail readers
  124.      for the PC.  Readers for the Macintosh, Amiga, and Atari exist as
  125.      well.  There are over a half dozen doors for PCBoard, and QWK-format
  126.      doors exist for virtually all of the popular BBS softwares.  All of
  127.      these happened in less than two years!  More readers and doors are in
  128.      development as I write this, keep up the excellent work.  In addition
  129.      to doors, some BBS softwares has QWK-format mail facility built in.
  130.  
  131.      Off-line mail reading is an integral part of BBS calling.  Conference
  132.      traffic and selection on all networks have grown dramatically in re-
  133.      cent years that on-line reading is a thing of the past.  Off-line mail
  134.      reading offers an alternative to reading mail on-line -- It offers
  135.      speed that cannot be achieved with on-line mail reading.
  136.  
  137.      The reason why QWK-format readers and doors seem to have gained popu-
  138.      larity is probably dued to its openness.  The format is readily avail-
  139.      able to any programmer who wishes to write a program that utilize it. 
  140.      Proprietary is a thing of the past, it does not work!  Openness is
  141.      here to stay and QWK-format is a part of it.
  142.  
  143. [1.3]  Questions, corrections, etc.
  144.  
  145.      Most of the message networks today have a conference/echo devoted to
  146.      discussion of off-line readers and mail doors.  The ones I know are on
  147.      FidoNet, ILink, Intelec, and RIME.  If you have questions after read-
  148.      ing anything in here, feel free to drop by any of the above conference
  149.      /echo and I am sure other QWK authors will try to help.
  150.  
  151.      I can be reached at:
  152.  
  153.      CompuServe: >INTERNET:p.lee@green.cooper.edu
  154.      FidoNet: Off-line echo
  155.      ILink: Off-line, Shareware conferences
  156.      Intelec: Off-line conference
  157.      Internet: p.lee@green.cooper.edu
  158.      PlanoNet: Reviews conference
  159.      RIME: ->RUNNINGB, Off-line, Common, Net Admin., Shareware, New Users,
  160.      Turbo Pascal, and Session Manager conferences
  161.  
  162.      Any corrections, extensions, comments, and criticisms are welcomed. 
  163.      Messages from Internet and RIME will probably be answered first.  But
  164.      I do check mail on all other places at least once a week.
  165.  
  166. [2]  Conventions & overview
  167.  
  168.      All offsets referenced in this document will be relative to 1.  I am
  169.      not a computer, I start counting at one, not zero!
  170.  
  171.      Words which are enclosed in quotes should be entered as-is.  The quota-
  172.      tions are not part of the string unless noted.
  173.  
  174.      You may have noticed I use the phrase "mail program" or "mail facili-
  175.      ty" instead of mail doors.  This is because some BBS softwares offer
  176.      the option of creating QWK-format mail packets right from the BBS. 
  177.      With those, there is no need for an external mail door.
  178.  
  179. [2.1]  The BBS ID
  180.  
  181.      The BBS ID (denoted as BBSID) is a 1-8 characters word that identifies
  182.      a particular BBS.  This identifier should be obtained from line 5 of
  183.      the CONTROL.DAT file (see section 3.2.1).
  184.  
  185. [2.2]  Packet compression
  186.  
  187.      Most mail packets are compressed when created by the mail door in
  188.      order to save download time and disk space.  However, many off-line
  189.      reader programs allow the user to unarchive a mail packet outside of
  190.      the reader program, so the reader will not have to unarchive it.  Upon
  191.      exit, the reader will not call the archiver to save it.  It is up to
  192.      the user to archive the replies.  This is useful if the user has limit-
  193.      ed memory and cannot shell out to DOS to run the unarchive program. 
  194.      For readers based on non-PC equipment, the user may be using less
  195.      common compression program that does not have command line equivalent.
  196.  
  197. [2.3]  Packet transfer & protocols
  198.  
  199.      There is no set rule on what transfer protocol should be used.  Howev-
  200.      er, it would be nice for the mail program on the BBS to provide the
  201.      Sysop with options as to what to offer.  This should be a configura-
  202.      tion option for the user.
  203.  
  204. [2.4]  Specifications & limitations
  205.  
  206.      There aren't many known limits in the QWK specification.  However,
  207.      various networks seem to impose artificial limits.  On many of the PC-
  208.      based networks, 99-lines appears to be the upper limit for some soft-
  209.      wares.  However, most of the readers can handle more than that.  Read-
  210.      er authors reading this may want to offer the option to split replies
  211.      into n lines each (the actual length should be user definable so when
  212.      the network software permits, the user can increase this number).
  213.  
  214. [3]  QWK files
  215.  
  216. [3.1]  Naming convention
  217.  
  218.      Generally, the name of the mail packet is BBSID.QWK.  However, this
  219.      does not have to be the case.  When the user downloads more than one
  220.      mail packet at one time, either the mail program or the transfer pro-
  221.      tocol program will rename the second and subsequent mail packets to
  222.      other names.  They will either change the file extension or add a
  223.      number to the end of the filename.  In either case, you should not
  224.      rely on the name of the QWK file as the BBSID.  The BBSID, as men-
  225.      tioned before, should be obtained from line 5 of the CONTROL.DAT file. 
  226.      In addition, mail packets do not have to end with QWK extension ei-
  227.      ther.  The user may choose to name them with other file extensions.
  228.  
  229. [3.2]  Control file (CONTROL.DAT)
  230.  
  231.      The CONTROL.DAT file is a simple ASCII file.  Each line is terminated
  232.      with a carriage return and line feed combination.  All lines should
  233.      start on the first column.
  234.  
  235.      Line #
  236.       1   My BBS                   BBS name
  237.       2   New York, NY             BBS city and state
  238.       3   212-555-1212             BBS phone number
  239.       4   John Doe, Sysop          BBS Sysop name
  240.       5   20052,MYBBS              Mail door registration #, BBSID
  241.       6   01-01-1991,23:59:59      Mail packet creation time
  242.       7   JANE DOE                 User name (upper case)
  243.       8                            Name of menu for Qmail, blank if none
  244.       9   0                        ? Seem to be always zero
  245.      10   999                      Total number of messages in packet
  246.      11   121                      Total number of conference minus 1
  247.      12   0                        1st conf. number
  248.      13   Main Board               1st conf. name (13 characters or less)
  249.      14   1                        2nd conf. number
  250.      15   General                  2nd conf. name
  251.      ..   3                        etc. onward until it hits max. conf.
  252.      ..   123                      Last conf. number
  253.      ..   Amiga_I                  Last conf. name
  254.      ..   HELLO                    Welcome screen file
  255.      ..   NEWS                     BBS news file
  256.      ..   SCRIPT0                  Log off screen
  257.  
  258.      Some mail doors, such as MarkMail, will send additional information
  259.      about the user from here on.
  260.  
  261.      0                             ?
  262.      25                            Number of lines that follow this one
  263.      JANE DOE                      User name in uppercase
  264.      Jane                          User first name in mixed case
  265.      NEW YORK, NY                  User city information
  266.      718 555-1212                  User data phone number
  267.      718 555-1212                  User home phone number
  268.      108                           Security level
  269.      00-00-00                      Expiration date
  270.      01-01-91                      Last log on date
  271.      23:59                         Last log on time
  272.      999                           Log on count
  273.      0                             Current conference number on the BBS
  274.      0                             Total KB downloaded
  275.      999                           Download count
  276.      0                             Total KB uploaded
  277.      999                           Upload count
  278.      999                           Minutes per day
  279.      999                           Minutes remaining today
  280.      999                           Minutes used this call
  281.      32767                         Max. download KB per day
  282.      32767                         Remaining KB today
  283.      0                             KB downloaded today
  284.      23:59                         Current time on BBS
  285.      01-01-91                      Current date on BBS
  286.      My BBS                        BBS network tag-line
  287.      0                             ?
  288.  
  289.      Some mail doors will offer the option of sending an abbreviated confer-
  290.      ence list.  That means the list will contain only conferences the user
  291.      has selected.  This is done because some mail readers cannot handle
  292.      more than n conferences at this time.  Users using those readers will
  293.      need this option if the BBS they call have too many conferences.
  294.  
  295. [3.3]  Welcome file
  296.  
  297.      This file usually contains the log on screen from the BBS.  The exact
  298.      filename is specified in the CONTROL.DAT file, after the conference
  299.      list.  This file may be in any format the Sysop chooses it be -- usu-
  300.      ally either in plain ASCII or with ANSI screen control code.  Some
  301.      Sysops (notably PCBoard Sysops) may use BBS-specific color change code
  302.      in this file as well.  Current mail programs seem to handle the trans-
  303.      lations between BBS-specific code to ANSI based screen control codes.
  304.  
  305.      Even if the CONTROL.DAT file contains the filename of this file, it
  306.      may not actually exist in the mail packet.  Sometimes, users will
  307.      manually delete this file before entering the mail reader.  Some off-
  308.      line readers offer the option to not display this welcome screen; some
  309.      will display this file regardless.  Some doors, similarly, will offer
  310.      option to the user to not send this file.
  311.  
  312. [3.4]  Goodbye file
  313.  
  314.      Similar to the welcome file above, the filename to the goodbye file is
  315.      in the CONTROL.DAT file.  This is the file the BBS displays when the
  316.      user logs off the board.  It is optional, as always, to send this file
  317.      or to display it.
  318.  
  319. [3.5]  News file
  320.  
  321.      Many mail doors offer the option to send the news file from the BBS. 
  322.      Most will only send this when it has been updated.  Like the welcome
  323.      and goodbye files, the filename to the news file is found in the CON-
  324.      TROL.DAT file.  It can be in any format the Sysop chooses, but usually
  325.      in either ASCII or ANSI.  Like the welcome screen, current mail facili-
  326.      ties seem to handle translation between BBS-specific control codes to
  327.      ANSI screen control codes.
  328.  
  329. [3.6]  Qmail DeLuxe2 menu file
  330.  
  331.      This file is of use only for Qmail DeLuxe2 mail reader by Sparkware. 
  332.      The filename is found on line 8 of the CONTROL.DAT file.
  333.  
  334. [3.7]  New uploads listing (NEWFILES.DAT)
  335.  
  336.      Most mail programs on the BBS will offer the option to scan new files
  337.      uploaded to the BBS.  The result is found in a file named
  338.      NEWFILES.DAT.  The mail program, if implementing this, should update
  339.      the last file scan field in the user's profile, if there is such a
  340.      field, as well as other information required by the BBS.  The mail
  341.      program should, of course, scan new files only in those areas the user
  342.      is allowed access.
  343.  
  344. [3.8]  Bulletin files (BLT-x.y)
  345.  
  346.      Most mail programs will also offer the option to include updated bulle-
  347.      tin files found on the BBS in the mail packet.  The bulletins are
  348.      named BLT-x.y, where x is the conference/echo the bulletin came from,
  349.      and y the bulletin's actual number.  The mail program will have to
  350.      take care of updating the last read date on the bulletins in the user
  351.      record.
  352.  
  353. [3.9]  Message file (MESSAGES.DAT)
  354.  
  355.      The MESSAGES.DAT file is the most important.  This is where all of the
  356.      messages are contained in.  The QWK file format is based on PCBoard
  357.      12.0 message base format from Clark Development Corporation (maker of
  358.      PCBoard BBS software).
  359.  
  360.      The file has a logical record length of 128-bytes.  The first record
  361.      of MESSAGES.DAT always contain a copyright notice saying "Produced by
  362.      Qmail...Copyright (c) 1987 by Sparkware.  All Rights Reserved".  The
  363.      rest of the record is space filled.  Actual messages consist of a 128-
  364.      bytes header, plus one or more 128-bytes block with the message text. 
  365.      Actual messages start in record 2.  The header block is layed out as
  366.      follows:
  367.  
  368.      Offset  Length  Description
  369.      ------  ------  ----------------------------------------------------   
  370.          1       1   Message status flag (unsigned character)
  371.                      ' ' = public, unread
  372.                      '-' = public, read
  373.                      '*' = private, read by someone but not by intended
  374.                      recipient
  375.                      '+' = private, read by official recipient
  376.                      '~' = comment to Sysop, unread
  377.                      '`' = comment to Sysop, read
  378.                      '%' = sender password protected, unread
  379.                      '^' = sender password protected, read
  380.                      '!' = group password protected, unread
  381.                      '#' = group password protected, read
  382.                      '$' = group password protected to all
  383.          2       7   Message number (in ASCII)
  384.          9       8   Date (mm-dd-yy, in ASCII)
  385.         17       5   Time (24 hour hh:mm, in ASCII)
  386.         22      25   To (uppercase, left justified)
  387.         47      25   From (uppercase, left justified)
  388.         72      25   Subject of message (mixed case)
  389.         97      12   Password (space filled)
  390.        109       8   Reference message number (in ASCII)
  391.        117       6   Number of 128-bytes blocks in message (including the
  392.                      header, in ASCII; the lowest value should be 2, header
  393.                      plus one block message; this number may not be left
  394.                      flushed within the field)
  395.        123       1   Flag (ASCII 225 means message is active; ASCII 226
  396.                      means this message is to be killed)
  397.        124       2   Conference number (unsigned word)
  398.        126       2   Logical message number in the current packet; i.e.
  399.                      this number will be 1 for the first message, 2 for the
  400.                      second, and so on. (unsigned word)
  401.        128       1   Indicates whether the message has a network tag-line
  402.                      or not.  A value of '*' indicates that a network tag-
  403.                      line is present; a value of ' ' (space) indicates
  404.                      there isn't one.  Messages sent to readers (non-net-
  405.                      status) generally leave this as a space.  Only network
  406.                      softwares need this information.
  407.  
  408.      Fields such as To, From, Subject, Message #, Reference #, and the like
  409.      are space padded if they are shorter than the field's length.
  410.  
  411.      The message text starts in the next record.  You can find out how many
  412.      blocks make up one message by looking at the value of "Number of 128
  413.      byte blocks".  Instead of carriage return and line feed combination,
  414.      each line in the message end with an ASCII 227 (pi character) symbol. 
  415.      There are reports that some (buggy) readers have problems with messag-
  416.      es which do not end the last line in the message with an ASCII 227. 
  417.      If a message does not completely occupy the 128-bytes block, the re-
  418.      mainder of the block is padded with space or null.
  419.  
  420.      Note that there seems to exist old doors which will use one byte to
  421.      represent the conference number and pad the other one with an ASCII 32
  422.      character.  The program reading this information will have to deter-
  423.      mine whether the ASCII 32 in byte 125 of the header is a filler or
  424.      part of the unsigned word.  One method is to look in the CONTROL.DAT
  425.      file to determine the highest conference number.
  426.  
  427.      Even though most mail programs will generate MESSAGES.DAT files that
  428.      appear in conference order, this is not always the case.  Tomcat!
  429.      (mail door for Wildcat! BBS) generates MESSAGES.DAT that is not in
  430.      conference order.  This is due to how Wildcat! itself stores mail on
  431.      the BBS.  Another known system that behaves this way is Auntie, which
  432.      has its mail door QWiKer.
  433.  
  434.      Note that some mail doors offer the option of sending a mail packet
  435.      even though there may be no messages to send -- thus an empty
  436.      MESSAGES.DAT file.  This was tested with Qmail 4.0 door and it sent a
  437.      MESSAGES.DAT file that contains a few empty 128-bytes blocks.  Other
  438.      mail doors seem to be able to produce QWK files without the MESSAG-
  439.      ES.DAT file at all!  Apparently, there was no standard established in
  440.      this procedure.
  441.  
  442. [3.10]  Index files (*.NDX)
  443.  
  444. [3.10.1]  Conference indices
  445.  
  446.      The index files contain a list of pointers pointing to the beginning
  447.      of messages in the MESSAGES.DAT file.  The pointer is in terms of the
  448.      128-bytes block logical record that the MESSAGES.DAT file is in.  Each
  449.      conference has its own xxx.NDX file, where xxx is the conference num-
  450.      ber left padded with zeroes.  Some mail programs offer the user the
  451.      option to not generate index files.  So the mail readers need to cre-
  452.      ate the index files if they are missing.
  453.  
  454.      EZ-Reader 1.xx versions will convert the NDX files from Microsoft MKS
  455.      format into IEEE long integer format.  The bad part about this is that
  456.      the user may store those index files back into the QWK file.  When
  457.      another reader reads the index files, it will be very confused!
  458.  
  459.      Special note for BBSes with more than 999 conferences: Index files for
  460.      conferences with four digit conference numbers is named xxxx.NDX,
  461.      where xxxx is the conference number (left padded with zeroes).  The
  462.      filenames for three digit conferences are still named xxx.NDX on these
  463.      boards.  I would assume filenames for conferences in the five digit
  464.      range is xxxxx.NDX, but I have not seen a BBS with 10,000 or more
  465.      conferences yet!
  466.  
  467.      Each NDX file uses a five bytes logical record length and is formatted
  468.      to:
  469.  
  470.      Offset  Length  Description
  471.      ------  ------  ------------------------------------------------------
  472.          1       4   Record number pointing to corresponding message in
  473.                      MESSAGES.DAT.  This number is in the Microsoft MKS$
  474.                      BASIC format.
  475.          5       1   Conference number of the message.  This byte should
  476.                      not be used because it duplicates both the filename of
  477.                      the index file and the conference # in the header.  It
  478.                      is also one byte long, which is insufficient to handle
  479.                      conferences over 255.
  480.      Please refer to appendix B for routines to deal with MKS numbers.
  481.  
  482. [3.10.2]  Personal index (PERSONAL.NDX)
  483.  
  484.      There is a special index file named PERSONAL.NDX.  This file contains
  485.      pointers to messages which are addressed to the user, i.e. personal
  486.      messages.  Some mail door and utility programs also allow the selec-
  487.      tion of other messages to be flagged as personal messages.
  488.  
  489. [3.11]  Pointer file
  490.  
  491.      Pointer file is generally included so that the user can reset the last
  492.      read pointers on the mail program, in case there is a crash on the BBS
  493.      or some other mishaps.  There should be little reason for the reader
  494.      program to access the pointer file.
  495.  
  496.      The pointer files I have seen are:
  497.  
  498.      KMail          BBSID.PNT
  499.      MarkMail       BBSID.PNT
  500.      Qmail          BBSID.PTR
  501.      QWiKer         HMP.PTR
  502.      SFMailQwk      BBSID.SFP
  503.  
  504.      Additions to this list are welcomed.
  505.  
  506. [3.12]  SESSION.TXT
  507.  
  508.      This file, if included, will contain the message scanning screen the
  509.      user sees from the door.
  510.  
  511. [4]  REP files
  512.  
  513. [4.1]  Naming convention
  514.  
  515.      The reply file is named BBSID.MSG, where BBSID is the ID code for the
  516.      BBS found on line 5 of the CONTROL.DAT file.  Once this file has been
  517.      created, the mail reader can archive it up into a file with REP exten-
  518.      sion.
  519.  
  520. [4.2]  Message file (BBSID.MSG)
  521.  
  522.      Replies use the same format as the MESSAGES.DAT file, except that
  523.      message number field will contain the conference number instead.  In
  524.      other words, the conference number will be placed in the two bytes
  525.      (binary) starting at offset 124, as well as the message number field
  526.      (ASCII) at offset 2.
  527.  
  528.      A private message is indicated by '*' in the message status flag.  For
  529.      some reason, most mail doors only accept '*' as a private message and
  530.      not '+'.
  531.  
  532.      The first 128-bytes record of the file is the header.  Instead of the
  533.      copyright notice, it contains the BBSID of the BBS.  This 1-8 charac-
  534.      ter BBSID must start at the very first byte and must match what the
  535.      BBS has.  The rest of the record is space padded.  The replies start
  536.      at record 2.  Each reply message will have a 128-bytes header, plus
  537.      one or more for the message text; followed by another header, and so
  538.      on.
  539.      The mail program must check to make sure the BBSID in the first block
  540.      of the BBSID.MSG file matches what the BBS has!
  541.  
  542. [4.3]  Door control messages
  543.  
  544.      These messages allow the user to change their setup on the BBS by
  545.      simply entering a message.  The goal is to allow the user to be able
  546.      to control most areas of the BBS via the mail door.  Different mail
  547.      doors have different capabilities.  Most all of them offer the ability
  548.      to add and drop a conference, as well as reset the last read pointers
  549.      in a conference.
  550.  
  551. [4.3.1]  DOOR.ID file
  552.  
  553.      The DOOR.ID file was first introduced by Greg Hewgill with Tomcat!
  554.      mail door and SLMR mail reader.  Since then, many other authors have
  555.      picked up this idea and use the format.  This file provides the neces-
  556.      sary identifiers a reader needs to send add, drop, etc. messages to
  557.      the mail door.  It tells the reader who to address the message to and
  558.      what can be put in the subject line.
  559.  
  560.      DOOR = <doorname>             This is the name of the door that creat-
  561.                                    ed the QWK packet, i.e. <doorname> =
  562.                                    Tomcat.
  563.      VERSION = <doorversion>       This is the version number of the door
  564.                                    that created the packet, i.e.
  565.                                    <doorversion> = 2.9.
  566.      SYSTEM = <systemtype>         This is the underlying BBS system type
  567.                                    and version, i.e. <systemtype> = Wildcat
  568.                                    2.55.
  569.      CONTROLNAME = <controlname>   This is the name to which the reader
  570.                                    should send control messages, eg.
  571.                                    <controlname> = TOMCAT.
  572.      CONTROLTYPE = <controltype>   This can be one of ADD, DROP, REQUEST,
  573.                                    or others.  ADD and DROP are pretty
  574.                                    obvious (they work as in MarkMail), and
  575.                                    REQUEST is for use with BBS systems that
  576.                                    support file attachments.  Try out SLMR
  577.                                    with CONTROLTYPE = REQUEST and use the Q
  578.                                    function.  (This seems to be a Wildcat!
  579.                                    BBS feature.)
  580.      RECEIPT                       This flag indicates that the door/BBS is
  581.                                    capable of return receipts when a mes-
  582.                                    sage is received.  If the first three
  583.                                    letters of the subject are RRR, then the
  584.                                    door should strip the RRR and set the
  585.                                    'return-receipt-requested' flag on the
  586.                                    corresponding message.
  587.      MIXEDCASE = YES               If this line is found then the reader
  588.                                    will let you use upper and lower case
  589.                                    names and subjects.  This is first found
  590.                                    in Qmail DeLuxe2 1.25 version.  Most
  591.                                    other QWK readers permit the use of
  592.                                    mixed case subject lines but force the
  593.                                    names to upper case only.
  594.      FIDOTAG = YES                 If this line is found then the reader
  595.                                    will automatically use FidoNet compliant
  596.                                    tag-lines.
  597.  
  598.      None of the lines are actually required and they may appear in any
  599.      order.  Of course, you would need a CONTROLNAME if you have any
  600.      CONTROLTYPE lines.
  601.  
  602. [4.3.2]  Qmail
  603.  
  604.      Send a message addressed to "QMAIL" with a subject of "CONFIG".  Then,
  605.      enter any of the commands listed below inside the text of your mes-
  606.      sage.  Remember to use one command per line.
  607.  
  608.      ADD <confnum>            Add a conference into the Qmail Door scanning
  609.                               list.  "YOURS" can also be added to the com-
  610.                               mand if the user wishes to receive messages
  611.                               only addressed them.  i.e. "ADD 1 YOURS"
  612.      DROP <confnum>           Drop a conference from the Qmail Door scan-
  613.                               ning list.
  614.      RESET <confnum> <value>  Resets a conference to a particular value.
  615.                               The user can use "HIGH-xxx" to set the con-
  616.                               ference to the highest message in the base.
  617.      CITY <value>             Changes the "city" field in the user's
  618.                               PCBoard entry.
  619.      PASSWORD <value>         Changes the user's login password.
  620.      BPHONE <value>           Business/data phone number
  621.      HPHONE <value>           Home/voice phone number
  622.      PCBEXPERT <on|off>       Turns the PCBoard expert mode ON or OFF.
  623.      PCBPROT <value>          PCBoard file transfer protocol (A-Z).
  624.      PAGELEN <value>          Set page length inside PCBoard.
  625.      PCBCOMMENT <value>       Set user maintained comment.
  626.      AUTOSTART <value>        Qmail Door autostart command.
  627.      PROTOCOL <value>         Qmail Door file transfer protocol (A-Z).
  628.      EXPERT <ON or OFF>       Turns the Qmail Door expert mode ON or OFF.
  629.      MAXSIZE <value>          Maximum size of the user's .QWK packet (in
  630.                               bytes)
  631.      MAXNUMBER <value>        Maximum number of messages per conference.
  632.  
  633. [4.3.3]  MarkMail
  634.  
  635.      Send a message addressed to "MARKMAIL" with the subject line saying:
  636.  
  637.      ADD [value]         in the conference you want to add
  638.      DROP                in the conference you want to drop
  639.      YOUR [value]        in the conference you want only your mail sent
  640.      YA [value]          in the conference you want only your mail + mail
  641.                          addressed to "ALL"
  642.      FILES ON or OFF     in any conference to tell MarkMail whether to scan
  643.                          for new files or not.
  644.      BLTS ON or OFF      to turn on and off, respectively, of receiving
  645.                          bulletins.
  646.      OWN ON or OFF       to turn on and off, respectively, of receiving
  647.                          messages you sent
  648.      DELUXE ON or OFF    to turn on and off, respectively, of receiving
  649.                          DeLuxe menu
  650.      LIMIT <size>        to set the maximum size of MESSAGES.DAT file can
  651.                          be, it cannot exceed what the Sysop has set up
  652.  
  653.      An optional number can be added onto the commands "ADD", "YOUR", and
  654.      "YA".  If this number is positive, then it will be treated as an abso-
  655.      lute message number.  MarkMail will set your last read pointer to that
  656.      number.  If it is negative, MarkMail will set your last read pointer
  657.      to the highest minus that number.  For example: "ADD -50" will add the
  658.      conference and set the last read pointer to the highest in the confer-
  659.      ence minus 50.
  660.  
  661. [4.3.4]  KMail
  662.  
  663.      Send a private message addressed to "KMAIL" in the conference that you
  664.      want to add, drop, or reset.  The commands are "ADD", "DROP", and
  665.      "RESET #", respectively.  The "#" is the message number you want your
  666.      last read pointer in the conference be set to.
  667.  
  668. [4.3.5]  RoseMail
  669.  
  670.      The RoseMail door allows configuration information be placed in either
  671.      the subject line or message text.  The message must be addressed to
  672.      "ROSEMAIL".  For only one command, it can be placed in the subject
  673.      line.  For more than one changes, the subject line must say "CONFIG"
  674.      and each change be placed in the message text.  Every line should be
  675.      left justified.  Valid commands are:
  676.  
  677.      Command                                           Example
  678.      ------------------------------------------------- ------------------
  679.      ADD <Conference> [<Message #>] [<Yours>]          ADD 2 -3 Y
  680.      DROP <Conference>                                 DROP 2
  681.      RESET <Conference> <Message #>                    RESET 12 5000
  682.      PCBEXPERT <ON | OFF> - PCBoard expert mode        PCBEXPERT ON
  683.      EXPERT <ON | OFF>    - RoseMail expert mode       EXPERT OFF
  684.      PCBPROT <A - Z>      - PCBoard protocol           PCBPROT Z
  685.      PROT <A - Z>         - RoseMail protocol          PROT G
  686.      PAGELEN <Number>     - Page length                PAGELEN 20
  687.      MAXSIZE <Kbytes>     - Max packet size in Kb      MAXSIZE 100
  688.      MAXNUMBER <max msgs/conference>                   MAXNUMBER 100
  689.      JUMPSTART <Sequence or OFF>                       JUMPSTART D;Y;Q
  690.      MAXPACKET <max msgs/packet>                       MAXPACKET 500
  691.      AUTOSTART <Sequence or OFF> - same as jumpstart   AUTOSTART OFF
  692.      OPT <##> <ON | OFF>  - set door option            OPT 2 OFF
  693.  
  694. [4.3.6]  Complete Mail Door
  695.  
  696.      Send message to "CMPMAIL", the commands are "ADD" and "DROP".  This
  697.      message must be sent in the conference that you want to add or drop.
  698.  
  699. [4.3.7]  The MainMail System
  700.  
  701.      Send a message addressed to "MAINMAIL" with the subject line saying:
  702.  
  703.      ADD [value]         in the conference you want to add
  704.      DROP                in the conference you want to drop
  705.      YOURS [value]       in the conference you want only your mail sent
  706.      YOURS ALL [value]   in the conference you want only your mail + mail
  707.                          addressed to "ALL"
  708.  
  709.      The optional [value] parameter functions identically to the MarkMail
  710.      door -- positive number indicates an absolute message number, negative
  711.      number will set your last read pointer that many messages from the
  712.      last message.
  713.  
  714. [4.3.8]  BGQWK
  715.  
  716.      The BGQWK mail door for GT Power supports file request via message.
  717.      To request a file, simply enter a message:
  718.  
  719.           To: BGQWK
  720.      Subject: DL:FILENAME.EXT
  721.  
  722.      The FILENAME.EXT has to be exact name, wildcard is not supported.  The
  723.      message text can be left blank.
  724.  
  725.      The only limit on the file request feature is your time and/or your
  726.      file ratio.  The transfer of the requested file(s) will start right
  727.      after the QWK download is completed.  The only exception is when the
  728.      user is using a bidirectional transfer protocol.  There, the REP and
  729.      QWK are sent at the same time, hence, the file request cannot be pro-
  730.      cessed until the QWK transfer is completed.
  731.  
  732. [4.3.9]  UltraBBS
  733.  
  734.      Send a private message addressed to "ULTRABBS" in the conference that
  735.      you want to add, drop, or reset.  The commands are "ADD", "DROP", and
  736.      "RESET #", respectively.  The "#" is the message number you want your
  737.      last read pointer in the conference be set to.  The QWK mail door for
  738.      UltraBBS is built in and it generates the DOOR.ID file as well.
  739.  
  740. [4.3.10]  TriMail
  741.  
  742.      TriMail is the QWK door for TriBBS.  This door will accept off-line
  743.      configuration options sent to Qmail, MarkMail, or TriMail.  This means
  744.      you can send the message to: "QMAIL", "MARKMAIL", or "TRIMAIL" in the
  745.      appropriate conference and it will work.  The available options are:
  746.  
  747.      BLTS ON             Turn bulletin scan on
  748.      BLTS OFF            Turn bulletin scan off
  749.      FILES ON            Turn new files scan on
  750.      FILES OFF           Turn new files scan off
  751.      RESET <value>       Reset last message read pointer
  752.      DROP                Drop this conference
  753.      ADD [value]         Add this conference.  The [value] is optional and
  754.                          will set the last message read pointer.
  755.  
  756. [4.3.11]  Cam-Mail
  757.  
  758.      Address your message to either QMAIL or CAM-MAIL.  Then enter the
  759.      command in the subject line.  Valid commands are:
  760.  
  761.      Add                 Add conferences for scanning
  762.      Bulletins On        Download all new bulletins in QWK packet
  763.      Bulletins Off       Turn off download of new bulletins
  764.      Color On            Download the QWK packet in color, if available
  765.      Color Off           Turn off download in color
  766.      Drop                Drop a conference from scanning
  767.      Duplicates On       Turn on duplicate checking in REP files
  768.      Duplicates Off      Turn off duplicate checking
  769.      Files On            Download new files list in QWK packet
  770.      Files Off           Turn off download of new files list
  771.      Goodbye On          Send the Goodbye files with the QWK packet
  772.      Goodbye Off         Does not send the Goodbye files
  773.      Mailflags On        Notifies users they have mail
  774.      Mailflags Off       Does not notify users of mail
  775.      NDX On              Create NDX files for QWK packet
  776.      NDX Off             Does not create NDX files
  777.      Welcome On          Send the Welcome file with the QWK packet
  778.      Welcome Off         Does not send the Welcome file
  779.  
  780. [4.4]  Turning off the echo flag
  781.  
  782.      In order to send a non-echoed message (not send out to other BBSs), a
  783.      user can enter "NE:" in front of the subject line.  This feature may
  784.      not be offered in all mail doors.
  785.      Some mail doors strip out the "NE:" from the subject line.  However,
  786.      that leaves the recipient with nothing to tell that the message was
  787.      not echoed.  Therefore, it is better if "NE:" is not stripped.
  788.  
  789. [4.5]  Tag-lines
  790.  
  791.      The most common format for a reader tag-line is:
  792.  
  793.       * My reader v1.00 * The rest of the tag-line.
  794.  
  795.      The three dashes is called a tear-line.  The tag-line is appended to
  796.      the end of the message and is usually one line only.  It is preferred
  797.      that tag-lines conform to this format so that networking softwares
  798.      such as QNet and RNet will not add another tearline to the message
  799.      when they process it.
  800.  
  801.      Softwares on FidoNet does not like mail readers adding a tear-line of
  802.      their own, so if your mail reader offers a FidoNet mode, you will need
  803.      to get rid of the tear-line.  Another item which differs between the
  804.      FidoNet and PC-based networks is that FidoNet does not like extended
  805.      ASCII characters.  So your reader may want to strip high ASCII if the
  806.      user has FidoNet mode on.  Acceptable tag-line style, I believe, is
  807.      just this:
  808.  
  809.       * My Reader v1.00 * The rest of the tag-line.
  810.  
  811. [5]  Net mail
  812.  
  813.      QWK mail doors can be used along or in conjunction with QWK network
  814.      softwares to operate a network.  Many such network exists.  A Net-
  815.      Status packet (one that can be imported to BBS message base) is very
  816.      similar to a normal mail packet users get.  The only difference is at
  817.      the end of the MESSAGES.DAT file.  There, a series of 128 byte blocks
  818.      are appended to indicate Net-Status.  
  819.  
  820.      One byte represent one conference, in groups of 128.  A non-zero value
  821.      means the user is allowed Net Mail status for that conference.  The
  822.      number of Net Status blocks appended to the MESSAGES.DAT file only
  823.      needs to cover the highest conference the user has access to.
  824.  
  825.      The reason these packets have to be different?  Using QWK mail doors
  826.      to send and receive messages require you to be able to send messages
  827.      in other user's name as well as receive private messages in confer-
  828.      ences.  The Net-Status tells the mail door to import the messages even
  829.      if they are from another name.
  830.  
  831.      The only weird implementation here is that the block with the highest
  832.      conference numbers come before the lower ones.  Hence, to illustrate:
  833.  
  834.             Conference 128
  835.             |  Conference 129
  836.             |  |
  837.            vv vv
  838.      0000  00 00 FF 00 00 00 00 00-00 00 00 00 00 00 00 00  Flags for
  839.      0010  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  conferences
  840.      0020  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  128-255
  841.      0030  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  842.      0040  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  843.      0050  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  844.      0060  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  845.      0070  00 00 00 00 00 00 00 00-00 00 00 00 00 00 FF 00
  846.  
  847.             Conference 0
  848.             |  Conference 1
  849.             |  |
  850.            vv vv
  851.      0080  00 FF 00 00 00 00 00 00-00 00 00 00 00 00 00 00  Flags for
  852.      0090  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  conferences
  853.      00A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  0-127
  854.      00B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  855.      00C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  856.      00D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  857.      00E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  858.      00F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 FF
  859.  
  860.      This example shows that this user has Net Status in conferences 1,
  861.      127, 130, and 254.
  862.  
  863.      MarkMail and KMail doors (both for PCBoard) choos to implement things
  864.      a little differently.  Instead of appending Net-Status blocks to the
  865.      end of the MESSAGES.DAT file, they simply put "MarkMail" or "Kmail..."
  866.      in the first 8 position of the file and the user is granted Net-Status
  867.      in all conferences.
  868.  
  869.                           -=-=-=-=-=-=-<>-=-=-=-=-=-=-
  870.  
  871. [A]  Credits and Contributions
  872.  
  873.      Mark "Sparky" Herring, who originated the QWK-format.
  874.  
  875.      Tim Farley, who started this documentation back in the summer of 1990. 
  876.      The general outline here is the work of Tim.  I filled in the blanks.
  877.  
  878.      Jeffery Foy, who gave us the format for Microsoft single binary versus
  879.      IEEE format.
  880.  
  881.      Greg Hewgill, who (if I remember correctly) wrote the Turbo Pascal
  882.      routines (included in here) to convert between MKS and TP LongInt.
  883.  
  884.      Dennis McCunney, who is the host of the Off-line conference on RIME,
  885.      is very knowledgeable in off-line reading concept and programs.  His
  886.      goal is to have one reader that can read mail packet from any source.
  887.  
  888.      Cody Gibson and Jeffery Foy, whose information on Net-Status packet
  889.      are included here.
  890.  
  891.      All those who have been around the Off-line conferences on ILink (the
  892.      oldest of the four I participate), RIME, Fido, and Intelec, who have
  893.      provided great help over the past three years.  The bulk of the infor-
  894.      mation presented here are from messages in those conferences.  These
  895.      people include, but are no limited to, the followings: Dane Beko,
  896.      Joseph Carnage, Marcos Della, Joey Lizzi, Mark May, and Jim Smith.
  897.  
  898.  
  899. [B]  Sample Turbo Pascal and C code
  900.  
  901.      Here are a few routines in Turbo Pascal and C to convert Microsoft
  902.      BASIC MKS format to usable IEEE long integer.  These are collected
  903.      over the networks and there is no guarantee that they will work for
  904.      you!
  905.  
  906.      Turbo Pascal (Greg Hewgill ?):
  907.  
  908.      type
  909.           bsingle = array [0..3] of byte;
  910.  
  911.      { converts TP real to Microsoft 4 bytes single }
  912.  
  913.      procedure real_to_msb (preal : real; var b : bsingle);
  914.      var
  915.           r : array [0 .. 5] of byte absolute preal;
  916.      begin
  917.           b [3] := r [0];
  918.           move (r [3], b [0], 3);
  919.      end; { procedure real_to_msb }
  920.  
  921.      { converts Microsoft 4 bytes single to TP real }
  922.  
  923.      function msb_to_real (b : bsingle) : real;
  924.      var
  925.           preal : real;
  926.           r : array [0..5] of byte absolute preal;
  927.      begin
  928.           r [0] := b [3];
  929.           r [1] := 0;
  930.           r [2] := 0;
  931.           move (b [0], r [3], 3);
  932.           msb_to_real := preal;
  933.      end; { function msb_to_real }
  934.  
  935.      Another Turbo Pascal routine to convert Microsoft single to TP LongInt
  936.      (Marcos Della):
  937.  
  938.      index := ((mssingle and not $ff000000) or $00800000) shr (24 -
  939.      ((mssingle shr 24) and $7f)) - 1;
  940.  
  941.      C (identify yourself if you wrote this routine):
  942.  
  943.      /* converts 4 bytes Microsoft MKS format to long integer */
  944.  
  945.      unsigned long mbf_to_int (m1, m2, m3, exp)
  946.      unsigned int m1, m2, m3, exp;
  947.      {
  948.           return (((m1 + ((unsigned long) m2 << 8) + ((unsigned long) m3 <<
  949.           16)) | 0x800000L) >> (24 - (exp - 0x80)));
  950.      }
  951.  
  952.      Microsoft binary (by Jeffery Foy):
  953.  
  954.         31 - 24    23     22 - 0        <-- bit position
  955.      +-----------------+----------+
  956.      | exponent | sign | mantissa |
  957.      +----------+------+----------+
  958.  
  959.      IEEE (C/Pascal/etc.):
  960.  
  961.         31     30 - 23    22 - 0        <-- bit position
  962.      +----------------------------+
  963.      | sign | exponent | mantissa |
  964.      +------+----------+----------+
  965.  
  966.      In both cases, the sign is one bit, the exponent is 8 bits, and the
  967.      mantissa is 23 bits.  You can write your own, optimized, routine to
  968.      convert between the two formats using the above bit layout.
  969.  
  970.  
  971. [C]  Sample message
  972.  
  973. Here is a sample message in hex and ASCII format:
  974.  
  975. 019780  20 34 32 33 32 20 20 20 30 32 2D 31 35 2D 39 32   4232   02-15-92
  976. 019790  31 33 3A 34 35 52 49 43 48 41 52 44 20 42 4C 41  13:45RICHARD BLA
  977. 0197A0  43 4B 42 55 52 4E 20 20 20 20 20 20 20 20 53 54  CKBURN        ST
  978. 0197B0  45 56 45 20 43 4F 4C 45 54 54 49 20 20 20 20 20  EVE COLETTI
  979. 0197C0  20 20 20 20 20 20 20 51 45 44 49 54 20 48 41 43         QEDIT HAC
  980. 0197D0  4B 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  K
  981. 0197E0  20 20 20 20 20 20 20 20 20 20 20 20 34 30 33 36              4036
  982. 0197F0  20 20 20 20 37 20 20 20 20 20 E1 0A 01 00 00 20      7     b
  983. 019800  2A 20 49 6E 20 61 20 6D 65 73 73 61 67 65 20 64  * In a message d
  984. 019810  61 74 65 64 20 30 32 2D 30 39 2D 39 32 20 74 6F  ated 02-09-92 to
  985. 019820  20 53 74 65 76 65 20 43 6F 6C 65 74 74 69 2C 20   Steve Coletti,
  986. 019830  52 69 63 68 61 72 64 20 42 6C 61 63 6B 62 75 72  Richard Blackbur
  987. 019840  6E 20 73 61 69 64 3A E3 E3 52 42 3E 53 43 20 AF  n said:
  988.  
  989. RB>SC >
  990. 019850  20 65 64 69 74 6F 72 20 69 6E 20 74 68 65 20 28   editor in the (
  991. 019860  6D 61 69 6E 66 72 61 6D 65 29 20 56 4D 2F 43 4D  mainframe) VM/CM
  992. 019870  53 20 70 72 6F 64 75 63 74 20 6C 69 6E 65 20 69  S product line i
  993. [ etc. ]
  994. 019A00  6E 6F 74 20 61 20 44 6F 63 74 6F 72 2C 20 62 75  not a Doctor, bu
  995. 019A10  74 20 49 20 70 6C 61 79 20 6F 6E 65 20 61 74 20  t I play one at
  996. 019A20  74 68 65 20 48 6F 73 70 69 74 61 6C 2E E3 20 20  the Hospital.
  997.  
  998. 019A30  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  999. 019A40  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  1000. 019A50  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  1001. 019A60  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  1002. 019A70  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  1003. 019A80  E3 50 43 52 65 6C 61 79 3A 4D 4F 4F 4E 44 4F 47  
  1004. PCRelay:MOONDOG
  1005. 019A90  20 2D 3E 20 23 33 35 20 52 65 6C 61 79 4E 65 74   -> #35 RelayNet
  1006. 019AA0  20 28 74 6D 29 E3 34 2E 31 30 20 20 20 20 20 20   (tm)
  1007. 4.10
  1008. 019AB0  20 20 20 20 20 20 20 20 20 48 55 42 4D 4F 4F 4E           HUBMOON
  1009. 019AC0  2D 4D 6F 6F 6E 44 6F 67 20 42 42 53 2C 20 42 72  -MoonDog BBS, Br
  1010. 019AD0  6F 6F 6B 6C 79 6E 2C 4E 59 20 37 31 38 20 36 39  ooklyn,NY 718 69
  1011. 019AE0  32 2D 32 34 39 38 E3 20 20 20 20 20 20 20 20 20  2-2498
  1012.  
  1013. 019AF0  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  1014.  
  1015. [D]  Sample index file
  1016.  
  1017. Here is a sample index file in hex format:
  1018.  
  1019. 000000  00 00 28 87 19 00 00 30 87 19 00 00 38 87 19 00
  1020. 000010  00 7E 87 19 00 00 07 88 19 00 00 0B 88 19 00 00
  1021. 000020  0F 88 19 00 00 14 88 19 00 00 19 88 19 00 00 1E
  1022. 000030  88 19 00 00 22 88 19 00 00 27 88 19 00 00 2C 88
  1023. 000040  19 00 00 31 88 19 00 00 3B 88 19 00 00 40 88 19
  1024. 000050  00 00 46 88 19 00 00 49 88 19 00 00 4D 88 19 00
  1025. 000060  00 52 88 19 00 00 55 88 19 00 00 59 88 19 00 00
  1026. 000070  60 88 19 00 00 66 88 19 00 00 70 88 19
  1027.  
  1028. This index file is for conference 25.  The values for the offset are as
  1029. follows: 84, 88, 92, 127, 135, 139, 143, 148, 153, 158, 162, 167, 172, 177,
  1030. 187, 192, 198, 201, 205 210, 213, 217, 224, 230, and 240.
  1031. @
  1032.  
  1033.